//
//  ViewController.m
//  DAILITest
//
//  Created by point on 2018/1/18.
//  Copyright © 2018年 whiteboard. All rights reserved.
//

#import "ViewController.h"
#import "XMRequsetObject.h"
#import "ZWRequsetObject.h"

@interface ViewController () <SSABSRequestObjectDelegate>
@property(nonatomic,strong) XMRequsetObject *requsetObject;
@end


@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.requsetObject = [[XMRequsetObject alloc]init];
    self.requsetObject.delegate = self;

}

- (void)requsetObject1:(id )request model:(XMModel *)model {
    NSLog(@"%@ %@",model.name , request);
    
    if ([request isKindOfClass:ZWRequsetObject.class]) {
        NSLog(@"zzzzzzzzzzzzzzzzzzzzzzzzz");
    }else {
        NSLog(@"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    }
    
    
}

- (void)requsetObject2:(id )request model:(XMModel *)model {
    NSLog(@"%@ %@",model.name,request);
}

- (void)requsetObject3:(id )request model:(XMModel *)model {
    NSLog(@"%@ %@",model.name,request);
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.requsetObject list];
}




@end




